home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Directorty Opus 5 - Magellan
/
Opus 5 - Magellan.iso
/
Extras
/
GCC_ERROR
/
Example Makefiles
/
makefile_cpp
next >
Wrap
Makefile
|
1997-03-26
|
1KB
|
56 lines
# 170197Emmy
# MakeFile mit GNU für 1stDemo
#
#
# Set Options
#
OSALHOME = home:emmy/projects/osal
ADDINCS = $(OSALHOME)
DODEBUG = -g
OPTS = $(DODEBUG) -DAMIGA -Wall -Wno-unused -IGNU:include \
-IGNU:OS-Include -IInclude: -I$(ADDINCS)
CC = gnu:bin/gcc 2>>t:MAKE.ERROROUT
OSALLIB = $(OSALHOME)/osalamiga/libosal.a
ABSTLIB = $(OSALHOME)osal/*.h
ENGINELIB = $(OSALHOME)/3dengine/3dbase.o
#
# Global Options
#
SHELL = /gnu/bin/sh
#
# Hauptsection
#
ALL: 1StDemo.exe haus.iff
######################
# Rules
######################
%.o : %.cpp
@echo "Compiling $< ..."
@$(CC) -o $@ -c $< $(OPTS)
%.exe : %.o
@echo "Linking $@ ..."
@$(CC) -o $@ $< $(ENGINELIB) $(OSALLIB) $(OPTS) -lstdc++ -lamiga -lauto
@Protect $@ REWD
%.iff : %.3dl
@echo "3DCompiling $@ ..."
@$(OSALHOME)/3dlcomp/3dlcomp.exe $<
################################
# Applications
################################
1StDemo.exe: 1StDemo.o
1StDemo.o: 1StDemo.cpp
haus.iff: haus.3dl
@echo "3DCompiling $@ ..."
@$(OSALHOME)/3dlcomp/3dlcomp.exe $<